<?php

/*
 * Niken Larasati
 * larasati.n@students.amikom.ac.id
 */

class status_kk extends CI_Controller {

    public function __construct() {
        parent::__construct();
    }

    function form_status_kk() {
        $this->template->load('halaman_v', 'form_status_kk_v');
    }

    function tambah() {
        if ($this->input->post('tambah') != NULL)
            ; {
            $data['id_status_kk'] = $this->input->post('id_status_kk');
            $data['status_kk'] = $this->input->post('status_kk');

            $this->load->model('umum_m');
            $this->umum_m->tambah('status_kk', $data);
            $this->template->load('halaman_v', 'form_status_kk_v');
        }
    }

    function ambil_data() {
        $this->load->model('status_kk_m');
        $data['data'] = $this->status_kk_m->ambil_data();
        $this->template->load('halaman_v', 'form_status_kk_v', $data);
    }

}
?>

